package com.top.up.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("order")
public class OrderEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("openId")
    @ApiModelProperty(value = "openId", name = "微信用户唯一标识")
    private String openId;

    @TableField("orderId")
    @ApiModelProperty(value = "orderId", name = "订单编号")
    private String orderId;

    @TableField("productId")
    @ApiModelProperty(value = "productId", name = "产品编号")
    private String productId;

    @TableField("orderStatus")
    @ApiModelProperty(value = "orderStatus", name = "订单状态")
    private String orderStatus;

    @TableField("completeTime")
    @ApiModelProperty(value = "completeTime", name = "完成时间")
    private LocalDateTime completeTime;

}
